package org.celery.modules.goods.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 商品款式表实体类
 *
 * @author Celery
 * @since 2022-03-30
 */
@Data
@TableName("celery_goods_style")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GoodsStyle对象", description = "商品款式表")
public class GoodsStyle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId;
    /**
     * 商品规格名
     */
    @ApiModelProperty(value = "商品规格名")
    private String name;
    /**
     * 商品规格内容
     */
    @ApiModelProperty(value = "商品规格内容")
    private String value;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
    /**
     * 成本价
     */
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;
    /**
     * 原价
     */
    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;
    /**
     * 条码
     */
    @ApiModelProperty(value = "条码")
    private String barCode;
    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private Integer inStock;
    /**
     * 库存策略(1 = 库存跟踪, 2 = 缺货后继续销售)
     */
    @ApiModelProperty(value = "库存策略(1 = 库存跟踪, 2 = 缺货后继续销售)")
    private Integer stockStrategy;
    /**
     * sku
     */
    @ApiModelProperty(value = "sku")
    private String sku;
    /**
     * sku重量单位
     */
    @ApiModelProperty(value = "sku重量单位")
    private String skuWeightUnit;
    /**
     * sku重量
     */
    @ApiModelProperty(value = "sku重量")
    private BigDecimal skuWeight;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径")
    private String pictureUrl;


}
